<titlemenu></titlemenu>
<div class="dj-list">
    <div class="dj-list-body">
        <div class="dj-list-content content1">
            <div class="card">
                <div activate-input activate-select class="header search-header">
                    <div class="search-param-panel">
                        <div class="search-input">
                            <form class="form-horizontal">
                                <div class="row clearfix form-inline">
                                    <div class="col-lg-3 col-md-3 dj-label">
                                        <label>议题名称</label>
                                    </div>
                                    <div class="col-lg-3 col-md-3">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <input name="rybm" class="form-control" type="text" ng-keypress="($event.which === 13)?search():0"
                                                       ng-model="selectparams.mbmc"
                                                       placeholder=""/>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-3 col-md-3 dj-label">
                                        <label>议题类型</label>
                                    </div>
                                    <div class="col-lg-3 col-md-3">
                                        <div class="form-group">
                                            <div class="form-line" style="width: 150px;">
                                                <select class="form-control show-tick" ng-model="selectparams.lx" ng-change="search()"
                                                        ng-options="type.dickey as type.dicvalue for type in shyklxList"
                                                        class="form-control"
                                                        name="lx">
                                                    <option value="" selected>--全部--</option>
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                        <div class="search-btn" style="margin-right: 20px;">
                            <div style="min-width: 13em">
                                <button  class="btn btn-default1"
                                        ng-click="search()">查询
                                </button>
                                <button  class="btn btn-default1 btn-reset"
                                        ng-click="reset()">重置
                                </button>
                                <!--<button role-permission-code="shykSetting_yt_List.btnAdd" class="btn btn-default1"-->
                                <!--ng-click="addData()">新增-->
                                <!--</button>-->
                            </div>
                        </div>
                    </div>
                    <div class="search-btn" style="margin-right: 20px;">
                        <div style="float: right">
                            <button role-permission-code="shykSetting_yt_List.btnAdd" class="btn btn-default1"
                                    ng-click="addData()">新增
                            </button>
                        </div>
                    </div>
                </div>
                <div class="body">
                    <div class="table-responsive list-table-panel">
                        <table class="table table-bordered table-striped table-hover js-basic-example dataTable text-nowrap">
                            <thead>
                            <tr>
                                <th>序号</th>
                                <th>模板名称</th>
                                <th>类型</th>
                                <th>排序</th>
                                <th>创建日期</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr ng-repeat="it in dataList">
                                <td scope="row" class="text-center">{{selectparams.pagesize*(selectparams.pageindex-1)+$index+1}}</td>
                                <td>{{it.MBMC}}</td>
                                <td class="text-center">{{it.LXMC}}</td>
                                <td class="text-center">{{it.SORT}}</td>
                                <td class="text-center">{{it.CJRQ | date:'yyyy-MM-dd'}}</td>
                                <th class="text-center">
                                    <button role-permission-code="shykSetting_yt_List.btnUpdate" class="btn td-btn bg-light-green waves-effect"
                                            ng-click="editData(it.ID)"
                                            title="修改">
                                        修改
                                    </button>
                                    <button role-permission-code="shykSetting_yt_List.btnDelete" class="btn td-btn bg-pink waves-effect"
                                            ng-click="delete(it.ID)" title="删除">
                                        删除
                                    </button>
                                </th>
                            </tr>
                            <tr ng-if="dataList.length<=0">
                                <td colspan="5" style="text-align:center">暂无数据</td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <pagination data-pageindex="selectparams.pageindex" data-pagesize="selectparams.pagesize"
                                data-ptotal="pageInfo.ptotal"></pagination>
                </div>
            </div>
        </div>
    </div>
</div>